package com.bilgeadam.swing.program;

import java.awt.BorderLayout;

import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

/**
 *
 * @author Bora SAYINER
 * @since Dec 14, 2014 10:16:53 AM
 * @version 1.0
 */
public class CustomComponents {

	public static void main(String[] args) {
		JFrame frmMain = new JFrame();
		frmMain.setTitle("Border Layout");
		frmMain.setSize(800, 600);
		frmMain.setLocationRelativeTo(null);
		frmMain.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		{
			JPanel pnlCenter = new JPanel();
			BorderLayout borderLayout = new BorderLayout();
			pnlCenter.setLayout(borderLayout);
			{
				JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.LEFT);
				{
					{
						JPanel panel = new JPanel();
						{
							{
								JLabel label = new JLabel("First Name");
								panel.add(label);
							}
						}
						tabbedPane.add("1 tab", panel);
					}
					{
						JPanel panel = new JPanel();
						{
							{
								JLabel label = new JLabel("Last Name");
								panel.add(label);
							}
						}
						tabbedPane.add("2 tab", panel);
					}
					{
						JPanel panel = new JPanel();
						{
							{
								JLabel label = new JLabel("Nick Name");
								panel.add(label);
							}
						}
						tabbedPane.add("3 tab", panel);
					}
				}
				pnlCenter.add(tabbedPane);
			}
			frmMain.add(pnlCenter, BorderLayout.CENTER);
		}
		frmMain.setVisible(true);
	}
}
